<%@page import="systems.ConfigSystem"%>
<%@page import="entities.SiteConfig"%>
<%@page import="helpers.StringHelper"%>
<%@page import="java.util.Map"%>
<%@page import="java.util.TreeMap"%>
<%@page import="entities.MetaSeo"%>
<%@page import="helpers.UrlHelper"%>
<%@page import="admin.controllers.PageServlet"%>
<%@page import="entities.Page"%>
<%
SiteConfig siteConfig = ConfigSystem.getConfigs();
Page aboutus = (Page) request.getAttribute("aboutus");
MetaSeo metaseo = (MetaSeo) request.getAttribute("metaseo");

//Set content for Seo
Map<String, String> replates = new TreeMap<String, String>();
replates.put("__SERVER_NAME__", UrlHelper.getDomainServer(request));
replates.put("__SERVER_URL__", UrlHelper.getServerUrl(request));


String title = StringHelper.replateContent(metaseo.getTitle(), replates);
String description = StringHelper.replateContent(metaseo.getDescription(), replates);
String keywords = StringHelper.replateContent(metaseo.getKeywords(), replates);
String url = StringHelper.replateContent(metaseo.getOgurl(), replates);
%>

<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:include page="/templates/default_lang/layouts/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
    <jsp:param name="description" value="<%=description %>" />
    <jsp:param name="keywords" value="<%=keywords %>" />
    <jsp:param name="ogtitle" value="<%=title %>" />
    <jsp:param name="ogurl" value="<%=url %>" />
    <jsp:param name="ogdescription" value="<%=description%>" />
</jsp:include>

	<script type="text/javascript" src="/templates/<%=siteConfig.getTemplate() %>/js/about_us.js"></script>
		<div class="mainContent clearafter">
			<div class="leftMainContent">
			
				<!-- Content Tab -->
				<div class="content">
					<div class="content_in">
						<h1 class="page_title"><%=aboutus.getTitle() %></h1>
						<div class="breadcrumbs">
							<p>
								<a href="/">Home</a> » <%=aboutus.getTitle() %>
							</p>
						</div>
						<div class="page_content">
							<%=aboutus.getContent() %>
						</div>
					</div>
				</div>
				<!-- End Content tab -->
			</div>
			<jsp:include page="/templates/default_lang/elements/right.jsp" />
		</div>
<jsp:include page="/templates/default_lang/layouts/footer.jsp" />